/** 
 * Copyright (c) 2012 Beny Information Technology Co., Ltd. All Rights Reserved. 
 * <p>
 * Project Name:  奔逸协同工作平台
 * FileName：g.beny.framework.el.UUID.java 
 * Created On: 2012-7-27 上午12:52:46
 * Description: 
 * @author gson
 * @version 1.0
 * <p>
 * Modifier： 2012-7-27 上午12:52:46
 * Modify Time： 2012-7-27 上午12:52:46
 */
package g.beny.framework.el;

import java.util.List;
import java.util.UUID;

import org.nutz.el.opt.RunMethod;
import org.nutz.plugin.Plugin;

/**
 * @ClassName: UUID
 * @Description: TODO
 * @author gson 
 * @date 2012-7-27 上午12:52:46
 * 
 */
public class Uuuid implements RunMethod, Plugin {
	public boolean canWork() {
		return true;
	}
	public Object run(List<Object> fetchParam) {
		String id = UUID.randomUUID().toString();
		id = id.replace("-", "");
		return id.toLowerCase();
	}
	public String fetchSelf() {
		return "uuuid";
	}
}
